home *** CD-ROM | disk | FTP | other *** search
/ Champak 141 / (Vol 141) Oct 17 2011.iso / Games / Clueless.swf / scripts / Forms / MapForm.as < prev    next >
Encoding:
Text File  |  2011-10-17  |  21.4 KB  |  588 lines

  1. package Forms
  2. {
  3.    import flash.display.*;
  4.    import flash.events.*;
  5.    import flash.filters.GlowFilter;
  6.    import flash.geom.ColorTransform;
  7.    import flash.geom.Point;
  8.    import flash.text.*;
  9.    
  10.    [Embed(source="/_assets/assets.swf", symbol="Forms.MapForm")]
  11.    public class MapForm extends CluelessBaseForm
  12.    {
  13.        
  14.       
  15.       protected var _glowparent:DisplayObject = null;
  16.       
  17.       protected var _glowfiltergroup:Array;
  18.       
  19.       protected var _colortransformDisabled:ColorTransform;
  20.       
  21.       public var _mcLevelSelect:MovieClip;
  22.       
  23.       public var _bPlayTutorial:SimpleButton;
  24.       
  25.       public var _tfPlayTutorial:TextField;
  26.       
  27.       protected var _aStarFilterDisabled:Array;
  28.       
  29.       protected var _bLevelSelectorShown:Boolean = false;
  30.       
  31.       public var _mcDialogStart:MovieClip;
  32.       
  33.       protected var _aFilterDisabled:Array;
  34.       
  35.       protected var _colortransformEnabled:ColorTransform;
  36.       
  37.       protected var _pPointLevelSelectShow:Point;
  38.       
  39.       protected var _aStarFilterSelected:Array;
  40.       
  41.       protected var _aStarsEnabled:Array;
  42.       
  43.       protected var _sLevelPrefix:String = "";
  44.       
  45.       public var _tfMainMenu:TextField;
  46.       
  47.       protected var _pPointLevelSelectHide:Point;
  48.       
  49.       protected var _glowfilter:GlowFilter;
  50.       
  51.       protected var _sMouseOverStoreName:String = "";
  52.       
  53.       protected var _sSelectedStoreName:String = "";
  54.       
  55.       public var _bStore0:SimpleButton;
  56.       
  57.       public var _bStore1:SimpleButton;
  58.       
  59.       public var _bStore3:SimpleButton;
  60.       
  61.       public var _bStore4:SimpleButton;
  62.       
  63.       public var _bStore6:SimpleButton;
  64.       
  65.       public var _bStore7:SimpleButton;
  66.       
  67.       public var _bStore8:SimpleButton;
  68.       
  69.       public var _bStore2:SimpleButton;
  70.       
  71.       public var _bStore5:SimpleButton;
  72.       
  73.       public var _bStore9:SimpleButton;
  74.       
  75.       public var _mcComplete1:MovieClip;
  76.       
  77.       public var _mcComplete2:MovieClip;
  78.       
  79.       public var _mcComplete3:MovieClip;
  80.       
  81.       public var _mcComplete7:MovieClip;
  82.       
  83.       public var _mcComplete8:MovieClip;
  84.       
  85.       public var _mcComplete9:MovieClip;
  86.       
  87.       public var _mcComplete4:MovieClip;
  88.       
  89.       public var _mcComplete5:MovieClip;
  90.       
  91.       public var _mcComplete6:MovieClip;
  92.       
  93.       public var _tfStoreName:TextField;
  94.       
  95.       public var _bStore11:SimpleButton;
  96.       
  97.       protected var _aStars:Array;
  98.       
  99.       public var _tfStoreDescription:TextField;
  100.       
  101.       protected var _iPhase:int = 0;
  102.       
  103.       protected var _aStarFilterEnabled:Array;
  104.       
  105.       public var _tfHonors:TextField;
  106.       
  107.       public var _bMenu:SimpleButton;
  108.       
  109.       protected var _aFilterEnabled:Array;
  110.       
  111.       public var _mcAchievements:SimpleButton;
  112.       
  113.       protected var _doSelectedStore:DisplayObject = null;
  114.       
  115.       public function MapForm()
  116.       {
  117.          var _loc1_:int = 0;
  118.          _aStars = new Array();
  119.          _aStarsEnabled = new Array();
  120.          _bLevelSelectorShown = false;
  121.          _doSelectedStore = null;
  122.          _sSelectedStoreName = "";
  123.          _sMouseOverStoreName = "";
  124.          _glowparent = null;
  125.          _iPhase = 0;
  126.          _sLevelPrefix = "";
  127.          super();
  128.          Music = "MenuMusic";
  129.          Profile.CurrentProfile.MapPressTutorial = false;
  130.          setBackButton(_bMenu);
  131.          _aFilterDisabled = _bStore7.filters;
  132.          _aFilterEnabled = _bStore1.filters;
  133.          _colortransformDisabled = _bStore7.transform.colorTransform;
  134.          _colortransformEnabled = _bStore1.transform.colorTransform;
  135.          _mcAchievements.addEventListener(MouseEvent.CLICK,onAchievements,false,0,true);
  136.          _bPlayTutorial.addEventListener(MouseEvent.CLICK,onPlayTutorial,false,0,true);
  137.          addEventListener(MouseEvent.MOUSE_MOVE,onLevelSelectMouseMove,false,0,true);
  138.          installMouseOverSound(_bMenu);
  139.          installMouseOverSound(_mcAchievements);
  140.          installMouseOverSound(_bPlayTutorial);
  141.          _loc1_ = 0;
  142.          while(_loc1_ <= 9)
  143.          {
  144.             getChildByName("_bStore" + _loc1_.toString()).addEventListener(MouseEvent.CLICK,onStore,false,0,true);
  145.             _loc1_++;
  146.          }
  147.          _loc1_ = 0;
  148.          while(_loc1_ <= 9)
  149.          {
  150.             getChildByName("_bStore" + _loc1_.toString()).addEventListener(MouseEvent.MOUSE_OVER,onMouseOver,false,0,true);
  151.             _loc1_++;
  152.          }
  153.          _glowfiltergroup = _bStore4.filters;
  154.          _glowfilter = _glowfiltergroup[0] as GlowFilter;
  155.          addEventListener(Event.ENTER_FRAME,onEnterFrame,false,0,true);
  156.          localize(_tfMainMenu,"Main Menu");
  157.          localize(_tfHonors,"Honors");
  158.          localize(_tfPlayTutorial,"Play Tutorial");
  159.          _aStarFilterEnabled = _mcLevelSelect.getChildByName("_mcStar1").filters;
  160.          _aStarFilterSelected = _mcLevelSelect.getChildByName("_mcStar2").filters;
  161.          _aStarFilterDisabled = _mcLevelSelect.getChildByName("_mcStar3").filters;
  162.          _aStars.push(null);
  163.          _loc1_ = 1;
  164.          while(_loc1_ <= 10)
  165.          {
  166.             _aStars.push(_mcLevelSelect.getChildByName("_mcStar" + _loc1_.toString()));
  167.             _aStarsEnabled.push(false);
  168.             _aStars[_loc1_].addEventListener(MouseEvent.MOUSE_OVER,onStarMouseOver,false,0,true);
  169.             _aStars[_loc1_].addEventListener(MouseEvent.MOUSE_OUT,onStarMouseOut,false,0,true);
  170.             _aStars[_loc1_].addEventListener(MouseEvent.CLICK,onStarMouseClick,false,0,true);
  171.             _loc1_++;
  172.          }
  173.          _pPointLevelSelectShow = new Point(_mcLevelSelect.x,_mcLevelSelect.y);
  174.          _pPointLevelSelectHide = new Point(_mcDialogStart.x,_mcDialogStart.y);
  175.          _mcLevelSelect.x = _pPointLevelSelectHide.x;
  176.          _mcLevelSelect.y = _pPointLevelSelectHide.y;
  177.       }
  178.       
  179.       public static function getLevelForm(param1:String) : BaseForm
  180.       {
  181.          var _loc2_:DressupForm = null;
  182.          var _loc3_:DressupLevelInfo = null;
  183.          var _loc4_:CutsceneForm = null;
  184.          _loc2_ = new DressupForm();
  185.          _loc3_ = new DressupLevelInfo(param1);
  186.          _loc2_.init(_loc3_);
  187.          if(_loc3_.LevelCutscene != "")
  188.          {
  189.             (_loc4_ = new CutsceneForm()).init(_loc2_,_loc3_.LevelCutscene);
  190.             return _loc4_;
  191.          }
  192.          return _loc2_;
  193.       }
  194.       
  195.       internal function onPlayTutorial(param1:Event) : void
  196.       {
  197.          var _loc2_:BaseForm = null;
  198.          _loc2_ = getLevelForm("Tutorial");
  199.          Profile.CurrentProfile.MapPressTutorial = true;
  200.          Profile.CurrentProfile.TutorialMask &= 65535 - Profile.kTutorial_DressupMask;
  201.          hideLevelSelect();
  202.          setForm(_loc2_);
  203.       }
  204.       
  205.       override public function onFocus() : void
  206.       {
  207.          super.onFocus();
  208.          updateBuildings();
  209.          if((Profile.CurrentProfile.TutorialMask & Profile.kTutorial_MapMask) == 0)
  210.          {
  211.             setTutorial(new MCTutorialMap());
  212.             Profile.CurrentProfile.TutorialMask |= Profile.kTutorial_MapMask;
  213.          }
  214.          if((Profile.CurrentProfile.TutorialMask & Profile.kTutorial_Concave) == 0 && Profile.CurrentProfile.hasUnlockedClothes())
  215.          {
  216.             setTutorial(new MCTutorialConcave());
  217.             Profile.CurrentProfile.TutorialMask |= Profile.kTutorial_Concave;
  218.          }
  219.          if(Profile.CurrentProfile.Ending == 1)
  220.          {
  221.             onBack(new MouseEvent(""));
  222.          }
  223.       }
  224.       
  225.       protected function onStore(param1:MouseEvent) : void
  226.       {
  227.          var _loc2_:DisplayObject = null;
  228.          var _loc3_:String = null;
  229.          var _loc4_:BaseForm = null;
  230.          _loc2_ = param1.target as DisplayObject;
  231.          if(_loc2_.name == "_bStore4" && Profile.CurrentProfile.hasUnlockedClothes())
  232.          {
  233.             onSnapshot(param1);
  234.          }
  235.          else
  236.          {
  237.             _loc3_ = Profile.CurrentProfile.getLevelForStore(_loc2_.name);
  238.             if(_loc3_ != "Tutorial")
  239.             {
  240.                Profile.CurrentProfile.TutorialMask |= Profile.kTutorial_DressupMask;
  241.                showLevelSelect(Profile.CurrentProfile.getLevelPrefixForStore(_loc2_.name),_loc2_,_sMouseOverStoreName);
  242.             }
  243.             else
  244.             {
  245.                _loc4_ = getLevelForm(_loc3_);
  246.                Profile.CurrentProfile.TutorialMask &= 65535 - Profile.kTutorial_DressupMask;
  247.                hideLevelSelect();
  248.                setForm(_loc4_);
  249.             }
  250.          }
  251.       }
  252.       
  253.       internal function onStarMouseOut(param1:MouseEvent) : void
  254.       {
  255.          var _loc2_:DisplayObject = null;
  256.          _loc2_ = param1.currentTarget as DisplayObject;
  257.          if(_aStarsEnabled[getStarIndex(_loc2_)])
  258.          {
  259.             _loc2_.filters = _aStarFilterEnabled;
  260.          }
  261.       }
  262.       
  263.       internal function showLevelSelect(param1:String, param2:DisplayObject, param3:String) : void
  264.       {
  265.          var _loc4_:int = 0;
  266.          var _loc5_:int = 0;
  267.          var _loc6_:String = null;
  268.          var _loc7_:TextField = null;
  269.          _sSelectedStoreName = param3;
  270.          _doSelectedStore = param2;
  271.          _bLevelSelectorShown = true;
  272.          _loc4_ = 0;
  273.          _loc5_ = 1;
  274.          while(_loc5_ < _aStars.length)
  275.          {
  276.             if(!Profile.CurrentProfile.isLevelUnlocked(param1 + "-" + _loc5_.toString()))
  277.             {
  278.                break;
  279.             }
  280.             _loc4_++;
  281.             _loc5_++;
  282.          }
  283.          _sLevelPrefix = param1;
  284.          _mcLevelSelect.x = param2.x;
  285.          _mcLevelSelect.y = param2.y;
  286.          _mcLevelSelect.visible = true;
  287.          if(_mcTutorial == null)
  288.          {
  289.             if(_loc4_ > 0)
  290.             {
  291.                if((Profile.CurrentProfile.TutorialMask & Profile.kTutorial_LevelSelectorEnabled) == 0)
  292.                {
  293.                   setTutorial(new MCTutorialLevelSelectEnabled());
  294.                   _mcTutorial.x = _mcLevelSelect.x;
  295.                   _mcTutorial.y = _mcLevelSelect.y + _mcLevelSelect.height;
  296.                   Profile.CurrentProfile.TutorialMask |= Profile.kTutorial_LevelSelectorEnabled;
  297.                }
  298.             }
  299.             else if((Profile.CurrentProfile.TutorialMask & Profile.kTutorial_LevelSelectorDisabled) == 0)
  300.             {
  301.                setTutorial(new MCTutorialLevelSelectDisabled());
  302.                _mcTutorial.x = _mcLevelSelect.x;
  303.                _mcTutorial.y = _mcLevelSelect.y + _mcLevelSelect.height;
  304.                Profile.CurrentProfile.TutorialMask |= Profile.kTutorial_LevelSelectorDisabled;
  305.             }
  306.          }
  307.          _loc7_ = _mcLevelSelect.getChildByName("_tfLevelName") as TextField;
  308.          if(_loc4_ > 0)
  309.          {
  310.             _loc6_ = "SELECT A LEVEL";
  311.             _loc7_.alpha = 1;
  312.          }
  313.          else
  314.          {
  315.             _loc6_ = "UNLOCK THIS LEVEL FIRST";
  316.             _loc7_.alpha = 0.5;
  317.          }
  318.          _loc7_.text = _loc6_;
  319.          (_mcLevelSelect.getChildByName("_tfLevelDescription") as TextField).text = _sSelectedStoreName;
  320.          showStars(_loc4_);
  321.       }
  322.       
  323.       internal function onEnterFrame(param1:Event) : void
  324.       {
  325.          var _loc2_:int = 0;
  326.          ++_iPhase;
  327.          _loc2_ = _iPhase % 60;
  328.          if(_loc2_ > 30)
  329.          {
  330.             _loc2_ = 60 - _loc2_;
  331.          }
  332.          if(_glowparent != null)
  333.          {
  334.             _glowfilter.blurX = _loc2_ + 25;
  335.             _glowfilter.blurY = _loc2_ + 25;
  336.             _glowparent.filters = _glowfiltergroup;
  337.          }
  338.       }
  339.       
  340.       internal function onLevelJump(param1:Event) : void
  341.       {
  342.          setForm(new LevelJumpForm());
  343.       }
  344.       
  345.       protected function onAchievements(param1:MouseEvent) : void
  346.       {
  347.          playSound("ClickButtonTrophySound");
  348.          setForm(new AchievementsForm());
  349.       }
  350.       
  351.       internal function onLevelSelectMouseMove(param1:MouseEvent) : void
  352.       {
  353.          if(_bLevelSelectorShown)
  354.          {
  355.             if(!_doSelectedStore.hitTestObject(_mcMouseCursor) && !_mcLevelSelect.hitTestObject(_mcMouseCursor) && _mcTutorial == null)
  356.             {
  357.                hideLevelSelect();
  358.             }
  359.          }
  360.       }
  361.       
  362.       protected function onSnapshot(param1:MouseEvent) : void
  363.       {
  364.          setForm(new SnapshotForm());
  365.       }
  366.       
  367.       internal function getStarIndex(param1:DisplayObject) : int
  368.       {
  369.          return parseInt(param1.name.replace("_mcStar",""));
  370.       }
  371.       
  372.       internal function hideLevelSelect() : void
  373.       {
  374.          _bLevelSelectorShown = false;
  375.          _mcLevelSelect.visible = false;
  376.       }
  377.       
  378.       internal function onStarMouseOver(param1:MouseEvent) : void
  379.       {
  380.          var _loc2_:DisplayObject = null;
  381.          var _loc3_:int = 0;
  382.          var _loc4_:String = null;
  383.          var _loc5_:String = null;
  384.          var _loc6_:Number = NaN;
  385.          var _loc7_:TextField = null;
  386.          var _loc8_:String = null;
  387.          var _loc9_:String = null;
  388.          var _loc10_:Level = null;
  389.          var _loc11_:String = null;
  390.          _loc2_ = param1.currentTarget as DisplayObject;
  391.          _loc3_ = getStarIndex(_loc2_);
  392.          if(_aStarsEnabled[_loc3_])
  393.          {
  394.             _loc4_ = _sLevelPrefix + "-" + _loc3_.toString();
  395.             _loc2_.filters = _aStarFilterSelected;
  396.             _loc5_ = Profile.CurrentProfile.getBestGradeForLevel(_loc4_);
  397.             _loc6_ = Profile.CurrentProfile.getBestScoreForLevel(_loc4_);
  398.             _loc7_ = _mcLevelSelect.getChildByName("_tfLevelName") as TextField;
  399.             if(_loc6_ > 0)
  400.             {
  401.                _loc7_.text = "Replay " + _loc4_;
  402.             }
  403.             else
  404.             {
  405.                _loc7_.text = "Play " + _loc4_;
  406.             }
  407.             if(_loc6_ > 0)
  408.             {
  409.                _loc9_ = "";
  410.                _loc10_ = Database.getInstance().getLevel(_loc4_);
  411.                for each(_loc11_ in _loc10_.Occasions)
  412.                {
  413.                   _loc9_ += Database.getInstance().getTheme(_loc11_).Description + ", ";
  414.                }
  415.                _loc9_ = _loc9_.substring(0,_loc9_.lastIndexOf(", "));
  416.                _loc8_ = "Fashions: " + _loc9_ + "\n" + "Best Level Grade: " + _loc5_;
  417.             }
  418.             else
  419.             {
  420.                _loc8_ = "Not yet completed";
  421.             }
  422.             (_mcLevelSelect.getChildByName("_tfLevelDescription") as TextField).text = _loc8_;
  423.          }
  424.       }
  425.       
  426.       internal function showStars(param1:int) : void
  427.       {
  428.          var _loc2_:int = 0;
  429.          _loc2_ = 1;
  430.          while(_loc2_ <= param1)
  431.          {
  432.             _aStars[_loc2_].filters = _aStarFilterEnabled;
  433.             _aStarsEnabled[_loc2_] = true;
  434.             _loc2_++;
  435.          }
  436.          _loc2_ = param1 + 1;
  437.          while(_loc2_ < _aStars.length)
  438.          {
  439.             _aStars[_loc2_].filters = _aStarFilterDisabled;
  440.             _aStarsEnabled[_loc2_] = false;
  441.             _loc2_++;
  442.          }
  443.       }
  444.       
  445.       internal function updateBuildings() : void
  446.       {
  447.          var _loc1_:int = 0;
  448.          var _loc2_:DisplayObject = null;
  449.          var _loc3_:MovieClip = null;
  450.          _glowparent = null;
  451.          _loc1_ = 1;
  452.          while(_loc1_ <= 9)
  453.          {
  454.             _loc2_ = getChildByName("_bStore" + _loc1_.toString()) as DisplayObject;
  455.             _loc3_ = getChildByName("_mcComplete" + _loc1_.toString()) as MovieClip;
  456.             _loc3_.visible = false;
  457.             _loc3_.mouseEnabled = false;
  458.             if(Profile.CurrentProfile.isStoreComplete(_loc2_.name))
  459.             {
  460.                _loc2_.filters = _aFilterEnabled;
  461.                _loc2_.transform.colorTransform = _colortransformEnabled;
  462.                _loc3_.visible = Profile.CurrentProfile.isStoreComplete(_loc2_.name);
  463.             }
  464.             else if(Profile.CurrentProfile.isStoreUnlocked(_loc2_.name))
  465.             {
  466.                _loc2_.filters = _glowfiltergroup;
  467.                _loc2_.transform.colorTransform = _colortransformEnabled;
  468.                _glowparent = _loc2_;
  469.             }
  470.             else if(_loc2_.name == "_bStore4" && Profile.CurrentProfile.hasUnlockedClothes())
  471.             {
  472.                _loc2_.filters = _aFilterEnabled;
  473.                _loc2_.transform.colorTransform = _colortransformEnabled;
  474.             }
  475.             else
  476.             {
  477.                _loc2_.filters = _aFilterDisabled;
  478.                _loc2_.transform.colorTransform = _colortransformDisabled;
  479.             }
  480.             _loc1_++;
  481.          }
  482.          _loc2_ = getChildByName("_bStore0") as DisplayObject;
  483.          _loc2_.visible = false;
  484.          if(!Profile.CurrentProfile.isStoreComplete(_loc2_.name))
  485.          {
  486.             _loc2_.visible = true;
  487.          }
  488.       }
  489.       
  490.       internal function onStarMouseClick(param1:MouseEvent) : void
  491.       {
  492.          var _loc2_:DisplayObject = null;
  493.          var _loc3_:int = 0;
  494.          var _loc4_:String = null;
  495.          var _loc5_:BaseForm = null;
  496.          _loc2_ = param1.currentTarget as DisplayObject;
  497.          _loc3_ = getStarIndex(_loc2_);
  498.          if(_aStarsEnabled[_loc3_])
  499.          {
  500.             _loc4_ = _sLevelPrefix + "-" + _loc3_.toString();
  501.             _loc5_ = getLevelForm(_loc4_);
  502.             hideLevelSelect();
  503.             setForm(_loc5_);
  504.          }
  505.       }
  506.       
  507.       protected function onMouseOver(param1:MouseEvent) : void
  508.       {
  509.          var _loc2_:DisplayObject = null;
  510.          _loc2_ = param1.target as DisplayObject;
  511.          if(_bLevelSelectorShown && _loc2_ != _doSelectedStore)
  512.          {
  513.             hideLevelSelect();
  514.          }
  515.          switch(_loc2_.name)
  516.          {
  517.             case "_bStore1":
  518.                _tfStoreName.text = "-   S p r i n g   G r e e n   P l a z a   -";
  519.                _sMouseOverStoreName = "Spring Green Plaza";
  520.                _tfStoreDescription.text = Localization.getString("Shop here for school, work and fun in the sun.");
  521.                break;
  522.             case "_bStore0":
  523.                _tfStoreName.text = "-   S p r i n g   G r e e n   P l a z a   -";
  524.                _sMouseOverStoreName = "Spring Green Plaza";
  525.                _tfStoreDescription.text = Localization.getString("Shop here for school, work and fun in the sun.");
  526.                break;
  527.             case "_bStore2":
  528.                _tfStoreName.text = "-   P r e c i o u s   R e n d e z v o u s   -";
  529.                _sMouseOverStoreName = "Precious Rendezvous";
  530.                _tfStoreDescription.text = Localization.getString("Find your formal and vintage fashions here.");
  531.                break;
  532.             case "_bStore3":
  533.                _tfStoreName.text = "-   G r a n d   E m p o r i u m   -";
  534.                _sMouseOverStoreName = "Grand Emporium";
  535.                _tfStoreDescription.text = Localization.getString("Houses makers of designer gowns. Made to suit your high-class lifestyle.");
  536.                break;
  537.             case "_bStore4":
  538.                _tfStoreName.text = "-   C o n c a v e   P h o t o   S t u d i o   -";
  539.                _sMouseOverStoreName = "Concave Photo Studio";
  540.                if(Profile.CurrentProfile.hasUnlockedClothes())
  541.                {
  542.                   _tfStoreDescription.text = Localization.getString("Show off your best poses here.");
  543.                }
  544.                else
  545.                {
  546.                   _tfStoreDescription.text = Localization.getString("Unlock items first.");
  547.                }
  548.                break;
  549.             case "_bStore5":
  550.                _tfStoreName.text = "-   R e d   C a r p e t   -";
  551.                _sMouseOverStoreName = "Red Carpet";
  552.                _tfStoreDescription.text = Localization.getString("A place where you can find vintage, iconic pieces.");
  553.                break;
  554.             case "_bStore6":
  555.                _tfStoreName.text = "-   E l e v e   S a l o n   -";
  556.                _sMouseOverStoreName = "Eleve Salon";
  557.                _tfStoreDescription.text = Localization.getString("Feeling like something different? Shop here for some Asian flair or military wear.");
  558.                break;
  559.             case "_bStore7":
  560.                _tfStoreName.text = "-   R o s s w e l l   C o s t u m e s   -";
  561.                _sMouseOverStoreName = "Rosswell Costumes";
  562.                _tfStoreDescription.text = Localization.getString("Feeling gothic? Feeling social? Shop here for club wear and gothic fashions.");
  563.                break;
  564.             case "_bStore8":
  565.                _tfStoreName.text = "-   D u c h e s s   L i n g e r i e   -";
  566.                _sMouseOverStoreName = "Duchess Lingerie";
  567.                _tfStoreDescription.text = Localization.getString("Offers a wide range of choices whether you feel like sweating it out in the gym or getting a tan at the beach.");
  568.                break;
  569.             case "_bStore9":
  570.                _tfStoreName.text = "-   M a r q u i s   J e w e l r y   -";
  571.                _sMouseOverStoreName = "Marquis Jewelry";
  572.                _tfStoreDescription.text = Localization.getString("Finish your look with matching bags, hats and flashy bling-blings.  All to be found in this shop.");
  573.          }
  574.          _tfStoreName.alpha = 1;
  575.          _tfStoreDescription.alpha = 1;
  576.          if(_loc2_.name != "_bStore4")
  577.          {
  578.             if(!Profile.CurrentProfile.isStoreUnlocked(_loc2_.name))
  579.             {
  580.                _tfStoreName.alpha = 0.5;
  581.                _tfStoreDescription.alpha = 0.5;
  582.                _tfStoreDescription.text = Localization.getString("Can\'t shop here yet.");
  583.             }
  584.          }
  585.       }
  586.    }
  587. }
  588.